<?php

include "session.php";


include 'conexion.php';

 $result = mysql_query("SELECT id as Value, nombre as DisplayText  FROM tipo_dispositivo;");

		$rows = array();$rowss = array();
		while($row = mysql_fetch_array($result))
		{
			  $rows["DisplayText"] = $row["DisplayText"];
			  $rows["Value"] = $row["Value"];
			  $rowss[] = $rows;
		 
		}

		//Return result to jTable
		$jTableResult = array();
		$jTableResult['Result'] = "OK";
		$jTableResult['Options'] =   $rowss;
		print json_encode($jTableResult);
?>